//
//  FSLoginView.h
//  cocoapodText
//
//  Created by apple on 16/8/10.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef FSLoginView_h
#define FSLoginView_h


#endif /* FSLoginView_h */
#import "CommonTool.h"
#import <Foundation/Foundation.h>
@class FSLoginView;

//一个协议可以扩展另一个协议，例如FSLoginViewDelegate扩展了NSObject协议
@protocol FSLoginViewDelegate <NSObject>

@required //@required修饰的方法必须实现
-(void)onLogin:(FSLoginView *)loginButton;
-(void)onSwitchSavePass:(FSLoginView *)switchSavePassView;
-(void)onForget:(FSLoginView *)loginButton;

@end

@interface FSLoginView : UIView
@property(nonatomic,weak)UIView *loginAllBackView;
@property(nonatomic,weak)UITextField *loginIdView;
@property(nonatomic,weak)UITextField *loginPassView;
@property(nonatomic,weak)UILabel *forgetPassView;
@property(nonatomic,weak)UIImageView *switchSavePassImageView;
@property(nonatomic,weak)UIButton *loginButtonView;

#pragma mark - 属性
#pragma mark 代理属性，同时约定作为代理的对象必须实现KCButtonDelegate协议
@property (nonatomic,retain) id<FSLoginViewDelegate> delegate;

#pragma mark - 公共方法
#pragma mark 点击方法
-(void)login;
-(void)switchSavePass;
-(void)forget;
-(void)refreshView;

@end
